import React from "react";
import ReactDOM from "react-dom";

const Demo = () => {
  function handleClick() {
    console.log('按钮被点击了');
  }
  return <button onClick={handleClick}>anniu</button>
  // return <button onClick={() => {console.log('按钮被点击了')}}>按钮</button>
}

ReactDOM.render(<Demo />,document.getElementById('root'))